package com.samplecompany.gui;

import org.apache.wicket.markup.html.IHeaderContributor;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.markup.html.panel.Panel;


/**
 * Homepage
 */
public class HomePage extends MashupWebPage implements IHeaderContributor {
	/** */
	private static final long serialVersionUID = 1L;
	
	public void renderHead(IHeaderResponse headerResponse) {
		headerResponse.renderString("<style type=\"text/css\"> div.content { margin: 20px; height: 250px; }</style>");
	}
	
	/**
	 * 
	 */
	public HomePage() {
		add((Panel) new HeaderPanel(GID));
		set(1, (Panel) new StyledMenuPanel(GID) {
			@Override
			public void setSelectedTabPanelContent(Panel newInstance) {
				HomePage.this.set(2, newInstance);
			}
		});
		add((Panel) new FooterPanel(GID));
	}
}